/*
 * @Description: 批次关联配置
 */
// import xjaxios from "@/api/axios";
import xjaxios from "@/api/axios";
export default {
  /**
     * @description: 获取表格
     * @return {Object}
     */
  getlist(params) {
    return xjaxios.post("/v3/growth/batchMapper/queryPageByCondition", {
      ...params
    });
  },
  /**
     * @description: 新增
     * @return {Object}
     */
  addlist(params) {
    return xjaxios.post("/v3/growth/batchMapper/add", {
      ...params,
      "farmingTypeNo": sessionStorage.getItem("farmingTypeNo")
      // "organizationNo": sessionStorage.getItem("organizationNo")
    });
  },
  /**
     * @description: 修改
     * @return {Object}
     */
  editlist(params) {
    return xjaxios.post("/v3/growth/batchMapper/edit", {
      ...params
    });
  },
  /**
     * @description: 删除
     * @return {Object}
     */
  dellist(params) {
    return xjaxios.get(`/v3/growth/batchMapper/delListById?idList=${params}`);
  },
  /**
     * @description: 根据批次条件查询
     * @return {Object}
     */
  querybycondion(batchMapperId) {
    return xjaxios.get(`/v3/growth/batchMapper/queryByBatchId/${batchMapperId}`, {
    });
  }
}
